﻿@model BuildServer.Models.BuildDefinition

@{
    ViewBag.Title = "Build Definitions";
}

<h2 class="title"><img src="~/Images/BuildDefinition.png" />@ViewBag.Title - @Model.Name</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    @Html.Hidden("copy_id", Model.Id)
    <table class="editor-table">
        @Html.EditorRowFor(model => model.BuildTemplate, Html.DropDownList("BuildTemplateId"))
        @Html.EditorRowFor(model => model.Name)
        @Html.EditorRowFor(model => model.IsNightly, "YesNo")
    </table>
    <p>
        <input type="submit" value="Create" /> | 
        @Html.ActionLink("Back to List", "Index")
    </p>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
